/**
 * @file
 * @author  Tsin Smith <tsin.creator@gmail.com>
 *
 * @section DESCRIPTION
 *
 */

#ifndef __TSIN_LIBRARY_BULLETTRANSLATEEVNET_HPP__
#define __TSIN_LIBRARY_BULLETTRANSLATEEVNET_HPP__

#include <tsin/library/common.hpp>
#include <tsin/library/BulletEvent.hpp>

namespace tsin {

        class LIBRARY_DLLEXPORT BulletTranslateEvent : public BulletEvent {
        public:
                BulletTranslateEvent();

                void init(float speed, float dangle = 0.0f, float starting = 0.0f);
                virtual void reinit();

                virtual bool trigger(BulletRuntime &bullet, void *data = 0);
                virtual BulletEvent *handle(BulletRuntime &bullet, void *data = 0);

        private:
                float speed, dangle, starting;
                float v;
        };

}

#endif /* __TSIN_LIBRARY_BULLETTRANSLATEEVNET_HPP__ */
